*******************
**** Table B11 ****
******************* 


use "$data/telephone_surveydata_ready" , clear


local controls teamdummy* firststickerdummy* preratiow1 lastdebt_demeanedw1 prepaymentsmadedummy*  
local addcontrols i.collectiv i.pc i.highvisible 

log using "$output/table b11", replace


reg q8 c.timepassed##i.treatmentidentitynew  if treatmentall!=0, vce(cluster dayteam) 

oprobit q8 c.timepassed##i.treatmentidentitynew if treatmentall!=0 [pweight = (1/pre_inv_insurveysample) ] , vce(cluster dayteam) 

oprobit q8 c.timepassed##i.treatmentidentitynew  `controls' `addcontrols' if treatmentall!=0, vce(cluster dayteam) 

reg idindex c.timepassed##i.treatmentidentitynew  `controls' `addcontrols'  if treatmentall!=0, vce(cluster dayteam) 


log close
